﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LingDong.QueryCore;
using LingDong.IndexEntities.Document;

public partial class Cache : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int id;
        Int32.TryParse(Page.Request.QueryString["id"], out id);
        OriginalDocumentEnity doc = Query.GetOriginalDocument(id);
        if (doc == null)
        {
            Response.Redirect("Index.aspx");
        }

        Response.Write(doc.URL);
        Response.Write("<hr />");
        Response.Write(doc.Content);
    }
}